Repository navigation
fix(debug): bump pysignalr to 1.3.3 to keep negotiate cookies on the WebSocket upgrade - #2016
Merged
Merged
Conversation
…WebSocket upgrade
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The upgrade silently drops hub-side failures for debug commands because sends omit an invocation callback, requiring a callback fix and a regression test to preserve error reporting.
1 open issue
What changed in this PR
This PR updates the UiPath SDK’s SignalR dependency to preserve negotiate cookies during WebSocket upgrades, addressing debug connection failures behind cookie-based load balancers.
Changes:
- Upgrade
pysignalrfrom 1.3.0 to 1.3.3. - Bump
uipathto 2.15.6 and synchronize the lockfile. - Add a local-server regression test verifying cookie forwarding.
| File | Description |
|---|---|
packages/uipath/uv.lock |
Updates dependency artifacts and the SDK version. |
packages/uipath/tests/cli/test_signalr_negotiate_cookies.py |
Verifies the WebSocket upgrade includes the negotiate cookie. |
packages/uipath/pyproject.toml |
Pins pysignalr 1.3.3 and sets version 2.15.6. |
Review effort: Balanced
ionut-mihalache-uipath
approved these changes
Nov 23, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
pysignalrfrom 1.3.0 to 1.3.3 inpackages/uipath(pyproject.toml,uv.lock).SignalRDebugBridge._sendpasses a completion callback tosend(), soSendCommandcalls keep aninvocationIdand hub-side errors still reach_handle_error.uipathto 2.15.6.tests/cli/test_signalr_debug_hub.py: two tests against a local SignalR hub.Why
SignalRDebugBridgeconnects to the debug hub with pysignalr. In 1.3.0, pysignalr sends the negotiate request from a short-lived aiohttp session and then opens the WebSocket with thewebsocketslibrary, so any cookie set by the negotiate response is dropped.When the hub runs on more than one server behind a load balancer that pins SignalR connections with a cookie, the WebSocket upgrade can reach a server that does not know the connection id. That server answers 404, and the debug job fails with
Failed to establish WebSocket connection within 10s timeout.pysignalr 1.3.3 forwards the negotiate cookies to the WebSocket handshake (see its changelog).
Since 1.3.1, pysignalr's
send()only adds aninvocationIdwhen anon_invocationcallback is given. Without one, the hub does not reply, so a failedSendCommandwould no longer be logged by_handle_error. The bridge now passes a no-op callback; errors still arrive throughon_error, as on 1.3.0.Other pysignalr changes in 1.3.1 to 1.3.3, checked against the bridge
on()handlers are now sent back when they are notNone(was: when truthy). The bridge's handlers return nothing."headers": {}, a standard SignalR field.websocketsis allowed in the range>=15.0.1,<18.Testing
tests/cli/test_signalr_debug_hub.py:SendCommandrejected by the hub reaches_handle_error. Fails without the completion callback.-k "debug or bridge or signalr or breakpoint"overtests/cliandtests/functions) pass.ruff check,ruff format --check,mypyandscripts/lint_httpx_client.pyare clean on the changed files.test:uipath-langchainandtest:uipath-runtimelabels.